const http = require('request');
const params = {
    tk: "wxapptoken:10:a6bbbfabe7af225ed936d3d9aee27349_f83f6abf70d648c0c03e18b3affd1f7e", //微信token
    seckillId: 1696, //秒杀场次
    linkmanId: 22790778, //抢的身份id
    idCardNo: 510811199808212940 //约苗身份证号码
}
module.exports = () => http({
    url: `https://miaomiao.scmttec.com/seckill/seckill/subscribe.do?seckillId=${params.seckillId}&&linkmanId=${params.seckillId}&&idCardNo=${params.idCardNo}`,//请求路径
    method: "GET",//请求方式，默认为get
    headers: {//设置请求头
        "Cookie": "_xxhm_=%7B%22id%22%3A24416306%2C%22mobile%22%3A%2218398216881%22%2C%22nickName%22%3A%22%E5%A5%BD%E5%A5%87%E5%85%88%E7%94%9F%22%2C%22headerImg%22%3A%22https%3A%2F%2Fthirdwx.qlogo.cn%2Fmmopen%2Fvi_32%2F2ribI5eeplQc7I2oWAAoPAeKnGUwyxsKDqMmBttv58eLRH0fbbCKMpt25olIbVc8qlwibUuNDtWM0IoLKrlfJ4WQ%2F132%22%2C%22regionCode%22%3A%22510122%22%2C%22name%22%3A%22%E6%9D%A8*%E6%9E%97%22%2C%22uFrom%22%3A%22systy3%22%2C%22wxSubscribed%22%3A0%2C%22birthday%22%3A%221998-08-21+02%3A00%3A00%22%2C%22sex%22%3A2%2C%22hasPassword%22%3Afalse%2C%22birthdayStr%22%3A%221998-08-21%22%7D; _xzkj_=wxapptoken:10:a6bbbfabe7af225ed936d3d9aee27349_48019fec378dc0c7b1401017dd51e29b; d6b1=f5d06b7f8c470376c0; d082=39583d5fcd59b528d9",
        "content-type": "application/json",
        "X-Requested-With": "XMLHttpRequest",
        "User-Agent": "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36 MicroMessenger/7.0.9.501 NetType/WIFI MiniProgramEnv/Windows WindowsWechat",
        'tk': params.tk,
        "Referer": "https://servicewechat.com/wxff8cad2e9bf18719/26/page-frame.html"
    },
}, function (error, response, body) {
    console.log(JSON.parse(body.toString()));
});
